# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here

class Book(models.Model):
    isbn = models.IntegerField()
    name = models.CharField(max_length=100)
    price = models.FloatField()


    def __unicode__(self):
        return self.name

class Author(models.Model):
    name = models.CharField(max_length=30)
    age = models.IntegerField()


    def __unicode__(self):
        return self.name

